//
//  DYFastLoginButton.m
//  BaiSi
//
//  Created by mac on 16/10/21.
//  Copyright © 2016年 DeYi. All rights reserved.
//

#import "DYFastLoginButton.h"

@implementation DYFastLoginButton


- (void)layoutSubviews {
    [super layoutSubviews];
    
    //布局图片向上
    self.imageView.xmg_y = 0;
    self.imageView.xmg_center_x = self.xmg_width * 0.5;
    //布局文字向下
    [self.titleLabel sizeToFit];
    self.titleLabel.xmg_center_x = self.xmg_width * 0.5;
    self.titleLabel.xmg_y = self.xmg_height - self.titleLabel.xmg_height;
}

@end
